<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/include/common_tag.jsp" %>
<div class="panel panel-default">
	<div class="panel-heading">
		<h3 class="panel-title">新增培训记录</h3>
	</div>
	<div class="panel-body">
		<form:form cssClass="form-horizontal" role="form" id="form">
			<div class="form-group">
				<input type="hidden" id="id" name="id" value="${trainV.id}" />
				<label for="companyName" class="col-xs-12 col-sm-3 control-label no-padding-right">培训名称:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="text" id="trainName" name="trainName" class="width-100" value="${trainV.trainName}" required=true  maxLength="200" />
					<span class="required">*</span>
				</div>
			
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label for="username" class="col-xs-12 col-sm-3 control-label no-padding-right">材料:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="hidden" id="material" name="material" class="width-100" value="${trainV.material}"/>					
					<div id="swfUploadContainer" style="width: 90%;">
					
					</div>
					<div>
						<img id="imagePreview" src="${trainV.material}" alt="公司图片" style="display:none;width: 90%;"/>
					</div>				
				</div>
			
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label for="mobilePhone" class="col-xs-12 col-sm-3 control-label no-padding-right">备注:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="text" id="content" class="width-100" value="${trainV.content}" maxLength="200"/>
					<span class="required">*</span>
				</div>
				
			</div>
			<div class="space-12"></div>
			<div class="form-group" style="text-align: center;">
				<div class="col-sm-9">
					<button id="returnBtn" type="button" class="btn btn-default btn-sm no-border">
						<i class="fa fa-undo"></i>返回
					</button>
					<button id="saveBtn" type="button" class="btn btn-success btn-sm no-border">
						<i class="fa fa-check"></i>提交
					</button>
				</div>
			</div>
		</form:form>
	</div>
</div>

